<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title>Finalove-App-Agreement</title>
		<link rel="stylesheet" href="../../resource/font/css/font-awesome.min.css">
		<link rel="stylesheet" href="../../resource/css/mint.css">
		<link rel="stylesheet" href="../../resource/css/style.css">
		<script src="../../resource/js/vue.js"></script>
		<script src="../../resource/js/mint.min.js"></script>
		<script src="../../resource/js/jquery.min.js"></script>
		<style type="text/css">
			.ct-box{
				margin-top: 40px;
			}
			body{
				background-color: #f2f2f2;
			}
		</style>
	</head>
	<body>
		<div id="main">
			<mt-header fixed :title="title">
				<mt-button icon="back" slot="left" class="closeView"></mt-button>
			</mt-header>
			<div class="ct-box">
				<h3 class="text-center">Finalove APP 用户须知</h3>
				<ol>
					<li>此APP适用于android5.1以上版本</li>
					<li>如果发现bug或者不兼容的情况，请将截图、手机型号、系统版本发送到我的邮箱~</li>
					<li>此APP为Finalove个人开发测试使用</li>
					<li>尽量少发图片和视频，我的小服务器受不了 T^T</li>
					<li>新闻来源--网易新闻</li>
					<li>关于用户证件信息，采用不可逆加密保存，绝不泄露</li>
					<li>
						<p>关于作者：</p>
						<p>个人网站：<a href="javascript:;" @click="startBrowser">www.finalove.top</a></p>
						<p>邮箱：2108606668@qq.com</p>
					</li>
				</ol>
				<p class="text-center">
					<mt-button type="primary" @click="closeThisView">确认</mt-button>
				</p>
				
			</div>
		</div>
	</body>
	<script type="text/javascript">
		var main = new Vue({
			el:"#main",
			data:{
				title:"用户使用协议",
				userInfo:{
					user_name:"",
					user_passwd:"",
				}
			},
			mounted:function() {
				this.init();
			},
			methods:{
				init() {
					// loading
					document.addEventListener('plusready',function () {
						// 沉浸header
						plus.navigator.setFullscreen(true);
						// header返回btn
						document.querySelector(".closeView").addEventListener('click',function(){
							plus.webview.currentWebview().close();
						});
						// backbutton事件修改
						plus.key.addEventListener('backbutton', function() {
							plus.webview.currentWebview().close();
							return false;
						}, false);
					})
				},
				closeThisView() {
					plus.webview.currentWebview().close();
				},
				startBrowser() {
					plus.runtime.openWeb("https://www.finalove.top");
				}
			}
		})
	</script>
</html>
